package com.piepesken.mediscale.ui.components.overview

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Bedtime
import androidx.compose.material.icons.filled.FavoriteBorder
import androidx.compose.material.icons.filled.FitnessCenter
import androidx.compose.material.icons.filled.NordicWalking
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.vector.ImageVector
import com.piepesken.mediscale.R

/**
 * This is some actually shitty code.
 *
 * TODO: Fix color.
 */
enum class Statistics(
    val title: Int, // String resource Id
    val value: Int,
    val unit: String,
    val textColor: Color,
    val darkTextColor: Color,
    val backgroundColor: Color,
    val darkBackgroundColor: Color,
    val icon: ImageVector
) {
    HeartRate(
        title = R.string.heartRate,
        value = 1,
        unit = "bpm",
        textColor = Color(0xFFA63550),
        darkTextColor = Color(0xffffb2bd),
        backgroundColor = Color(0xFFFFD9DD),
        darkBackgroundColor = Color(0xff861c39),
        icon = Icons.Filled.FavoriteBorder
    ),
    Exercise(
        title = R.string.exercise,
        value = 1,
        unit = "min",
        textColor = Color(0xff5b4bc4),
        darkTextColor = Color(0xffc7bfff),
        backgroundColor = Color(0xffe4dfff),
        darkBackgroundColor = Color(0xff4330ab),
        icon = Icons.Filled.FitnessCenter
    ),
    Walking(
        title = R.string.walking,
        value = 1,
        unit = "km",
        textColor = Color(0xff316b1f),
        darkTextColor = Color(0xff97d77e),
        backgroundColor = Color(0xffb2f497),
        darkBackgroundColor = Color(0xff185207),
        icon = Icons.Filled.NordicWalking
    ),
    Sleep(
        title = R.string.sleep,
        value = 1,
        unit = "hrs",
        textColor = Color(0xff724c9e),
        darkTextColor = Color(0xffdab9ff),
        backgroundColor = Color(0xffeedbff),
        darkBackgroundColor = Color(0xff593485),
        icon = Icons.Filled.Bedtime
    ),
}